import request from '@/config/axios'

// 查询通信录列表
export const getContactsList = (params) => {
  return request.get({ url: '/beidaUser/list', params })
}

// 获取通信录详情
export const getContacts = (id: number) => {
  return request.get({ url: '/beidaUser/getById?id=' + id })
}

// 新增通信录
export const saveContacts = (data) => {
  return request.post({ url: '/beidaUser/saveOrUpdate', data })
}

// 删除通信录
export const deleteContacts = (data) => {
  return request.post({ url: '/beidaUser/delete', data})
}

// 启用通信录
export const enableContacts = (params) => {
  return request.get({ url: '/beidaUser/updateStatus', params})
}
